<{include file="top.tpl"}>
<{if $webstate==1}><!--是否关闭系统-->
<script type="text/javascript">
function getArticleList(page,cond,cont)
{
	//xajax.$('submitButton').disabled=true;
	//xajax.$('submitButton').value="please wait...";
	xajax.$('textbox').style.display = "none";
	xajax.$('no-entry-message').innerHTML="<{$articleload}>";
	xajax.$('no-entry-message').style.display = "";
	xajax_getArticleList(page,cond,cont);
	return false;
}
function getArticleListEx(c,p,cond,where){
	xajax.$('textbox').style.display = "none";
	xajax.$('no-entry-message').innerHTML="<{$articleload}>";
	xajax.$('no-entry-message').style.display = "";
	xajax_getArticleList(p,cond,where);
	return false;
}
<{if $showannounce=='1'}>
function getAnnounce(){
	xajax_getAnnounce();
	return false;
}
<{/if}>
function getCategoryList(){
	//xajax.$('panel-content').innerHTML="<ul><li><a href=\"index.php\"><b>首页</b></a></li><li><{$loading}></li></ul>";
	xajax_getCategoryList();
	return false;
}
function getCalendar(year,month){
	xajax.$('panelCalendar').innerHTML = "<h5>日历</h5><li><{$loading}></li>";
	xajax_getCalendar(year,month);
	return false;
}
function getRecentArticles(){
	xajax.$('panelArticleContent').innerHTML = "<ul><li><{$loading}></li></ul>";
	xajax_getRecentArticles();
	return false;
}
function getComment(){
	xajax.$('panelCommentContent').innerHTML = "<ul><li><{$loading}></li></ul>";
	xajax_getComment();
	return false;
}
function getStats(){
	xajax.$('panelStatsContent').innerHTML = "<li><{$loading}></li>";
	xajax_getStats();
	return false;
}
function getLinks(){
	xajax.$('panelLinksContent').innerHTML = "<{$loading}>";
	xajax_getLinks();
	return false;
	
}
function userLogin(){
	xajax.$('Loginbtn').disabled = true;
	xajax_userLogin(xajax.getFormValues("login"));
	return false;
}
</script>
<div id="mainWrapper">
<div id="content" class="content">
<div id="innerContent">
<!--如果用户设了公告，则显示公告栏-->
<{if $showannounce=='1'}>
  <div class="announce">
    <div id="announce-content" class="announce-content">
      <div class="announce-time">公告添加时间</div>
		公告内容
    </div>
  </div>
<{/if}>
<!--公告结束-->

<!--显示分页，及各模式连接-->
  <div class="article-top">
    <div id="view-mode" class="view-mode">显示模式: <a href="?vmodel=normal">正常模式</a> | <a href="?vmodel=list">列表模式</a></div>
    <div id="pages" class="pages">
	
    </div>
  </div>
<!--分页结束-->
<!--没有文章-->
    <div class="no-entry">
      <div id="no-entry-message" class="no-entry-message">
      <{$articleload}>
      </div>
    </div>
<!--没有文章结束-->

<!--否则，有文章的话、-->
<div id="textbox" style="display:none">
<div class="textbox">
  <div class="textbox-title">
    <h4>
    
    <a href="article.asp?id=40">
    文章标题</a>
    
    </h4>
    <div class="textbox-label">[ 2007-12-28 14:14:01 | 作者: <a href="user.asp?act=view&amp;id=1">Admin</a> ]</div>
  </div>
  <div class="textbox-content">
  文章内容文章内容文章内容文章内容文章内容文章内容文章内容<br>文章内容文章内容文章内容文章内容文章内容文章内容<br>文章内容文章内容文章内容文章内容
  </div>
  <div class="textbox-bottom">
    
    <a href="?cat=2">文章分类: php</a> |
    <a href="http://www.sdmblog.cn/?id=40">永久链接</a> |
    <a href="article.asp?id=40#commentbox">评论: 1</a> |
    <a href="trackback.asp?act=list&amp;id=40">引用: 0</a> |
    浏览数: 23
  </div>
</div>
</div>
<!--有文章结束-->
</div>
</div>
<{include file="left.tpl"}>
<script>
getArticleList(<{$page}>,'<{$param1}>','<{$param2}>');
<{if $showannounce=='1'}>
getAnnounce();
<{/if}>
getCategoryList();
getRecentArticles();
getComment();
getCalendar(<{$smarty.now|date_format:"%Y"}>,<{$smarty.now|date_format:"%m"}>);
getStats();
getLinks();
</script>
<{/if}><!--是否关闭系统-->
<{include file="foot.tpl"}>
